@prefix-cls: ~'inbiz-Banner';

.@{prefix-cls} {
  min-height: 32px;
  font-size: 14px;
  cursor: pointer;

  &-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;

    .@{prefix-cls}-btn {
      position: absolute;
      top: 50%;
      z-index: 1;
      display: inline-block;
      text-align: center;
      transform: translateY(-50%);

      &-left {
        left: 16px;
      }

      &-right {
        right: 16px;
      }
    }

    .slick-track {
      display: flex;
      align-items: center;
    }

    .@{prefix-cls}-content {
      position: relative;
      width: 100%;

      &-img {
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
      }

      &-title {
        position: absolute;
        bottom: 0;
        left: 0;
        box-sizing: border-box;
        width: 100%;
        height: fit-content;
        padding: 8px;
        overflow: hidden;
        color: #fff;
        line-height: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
        background: rgba(0, 0, 0, 0.6);
      }
    }

    &:not(.@{prefix-cls}-roll) {
      .@{prefix-cls}-content {
        &-img {
          height: 100%;
        }
      }
    }

    &:hover {

      .slick-arrow.slick-prev,
      .slick-arrow.slick-next {
        display: block !important;
      }
    }
  }

  &-roll {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;

    .slick-slide {
      height: 100% !important;
      padding: 0 8px;

      div {
        height: 100%;
      }

      &>div {
        height: 100%;

        .@{prefix-cls}-content {
          height: 100%;

          img {
            height: 100%;
          }

          &-title {
            display: flex;
            align-items: center;
            height: 30px;
            padding: 0 8px;
            overflow: hidden;
            line-height: 1;
            white-space: nowrap;

            >span {
              flex: 1;
              text-overflow: ellipsis;
              overflow: hidden;
            }
          }
        }
      }
    }

    .ant-carousel {
      width: calc(100% - 48px);
    }

    .slick-arrow.slick-prev,
    .slick-arrow.slick-next {
      font-size: 36px !important;
    }

    .slick-arrow.slick-next {
      right: -28px;
    }

    .slick-arrow.slick-prev {
      left: -28px;
    }
  }

  &-focus {
    .arrow-icon-wrapper {
      // border: 2px solid #bfbfbf;
      // border-radius: 50%;
      // width: 48px;
      // height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .slick-arrow.slick-prev {
      left: 24px;
      font-size: 20px !important;
    }

    .slick-arrow.slick-next {
      right: 24px;
      font-size: 20px !important;
    }
  }

  &-detail {
    width: 800px;
    margin: 0 auto;

    &-title {
      margin-bottom: 32px;
      color: var(--inbiz-color-heading);
      font-weight: 600;
      font-size: 24px;
    }

    &-abstract {
      margin-bottom: 16px;
      color: var(--inbiz-color-text);
      font-size: var(--inbiz-font-size-base);
    }

    &-info {
      padding-bottom: 8px;
      color: var(--inbiz-color-secondary-text);
      font-size: 12px;
      border-bottom: 1px solid #ccc;
    }

    &-main {
      display: flex;
      justify-content: center;

      img {
        width: 100%;
        margin: 32px 0;
      }
    }

    &-describe {
      color: var(--inbiz-color-text);
      font-size: var(--inbiz-font-size-base);
    }
  }

  .ant-carousel .slick-prev,
  .ant-carousel .slick-next,
  .ant-carousel .slick-prev:hover,
  .ant-carousel .slick-next:hover,
  .ant-carousel .slick-prev:focus,
  .ant-carousel .slick-next:focus {
    z-index: 1;
    color: currentColor !important;
    cursor: pointer;
  }

  .ant-carousel .slick-prev::before {
    color: currentColor !important;
  }

  .slick-arrow.slick-prev {
    display: none !important;
    width: fit-content;
    height: fit-content;
    background: unset !important;

    &::before {
      display: none;
    }
  }

  .ant-carousel .slick-next::before {
    color: currentColor !important;
  }

  .slick-arrow.slick-next {
    display: none !important;
    width: fit-content;
    height: fit-content;
    background: unset !important;

    &::before {
      display: none;
    }
  }
}